package com.win.controller.sqoop;

import com.win.service.TableService;
import com.win.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/getTables")
@CrossOrigin
public class TableController {

    @Autowired
    private TableService tableService;

    @GetMapping
    public Result getTables(){
        Result result = tableService.getAll();
        return result;
    }
}
